﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Xml
Imports System.Reflection


Partial Class 标尺
 
    Public 标尺1编号 As String
    Public 标尺2编号 As String
    Public 标尺1常数 As String
    Public 标尺2常数 As String
    Public 最小分划 As String
    Public 加密数据 As String


    Public Property 项目 As 项目



    Public Shared Function Paras(xxNode As XmlNode) As 标尺

        Dim tmpClass As 标尺 = New 标尺()
        Dim nameList As XmlAttributeCollection = xxNode.Attributes
        For Each xxattribute As XmlAttribute In nameList
            Try

                Dim tmpType As Type = tmpClass.GetType()
                Dim tmpP As FieldInfo = tmpType.GetField(xxattribute.Name)
                tmpP.SetValue(tmpClass, xxattribute.Value)
            Catch ex As Exception

            End Try

        Next


        'XmlNodeList childList = xxNode.ChildNodes '取得row下的子节点集合
        'foreach (XmlNode xxxNode in childList)
        '
        '    if (xxxNode.Name.Equals("测站"))
        '    
        '        测站 tmpClass1 = new 测站()
        '        tmpClass.测站.Add(tmpClass1.Paras(xxxNode))
        '     

        ' 


        Return tmpClass

    End Function



End Class